{loop $data $n $r}
{php $mypic .= thumb($r[thumb], $width, $height).'#'.str_replace('"',"'",$r[title]).'#'.$r[url].'|';}
{/loop}
{php $mypic=substr($mypic,0,-1);}
  <object width="{$width}" height="{$height}" type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="demo">
    <param value="/img/focus1.swf" name="movie"/>
    <param value="best" name="quality"/>
    <param value="#ffffff" name="bgcolor"/>
    <param value="transparent" name="wmode"/>
    <param value="mypic={$mypic}" name="flashvars"/>
    <embed width="{$width}" height="{$height}" flashvars="mypic={$mypic}" wmode="transparent" bgcolor="#ffffff" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="best" src="/img/focus1.swf" id="demo"/>    
  </object>
